package net.lcqf.udp.send;

import net.lcqf.udp.kcp.Ukcp;
import net.lcqf.udp.server.MsgInfo;

/**
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2021-2025 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2025/3/19 09:10
 * // +----------------------------------------------------------------------
 */
public interface MessageBaseService {

    void init();

    /**
     * 消息类型的抽象接口
     * @param kcp kcp
     * @param msgInfo 内容
     * @return {@code Object}
     */
    default Object sendMessage(Ukcp kcp, MsgInfo msgInfo) { return null; }
}
